<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="login.do" method="POST">
		账号：<input type="text" name="admin"> 
		<c:if test="${not empty sessionScope.msg && sessionScope.msg == '用户名不存在'}">
            <span class="msg">${sessionScope.msg}</span>
        </c:if> <br>
		密码：<input type="password" name="password"> 
		<c:if test="${not empty sessionScope.msg && sessionScope.msg == '密码错误'}">
            <span class="msg">${sessionScope.msg}</span>
        </c:if>
		<br>
		<input type="submit" value="提交">
	</form>
</body>
</html>